<template>
  <div class=''>
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
          <el-row>
            <el-col :span="12">
              <el-form-item label="会议名称:" prop="meetingName">
                <el-input  v-model="ruleForm.meetingName" :disabled="true"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item  label="会议部门:" prop="meetingDept">
                <treeselect  v-model="ruleForm.meetingDept" placeholder="请选择会议部门" :options="deptOptions" style="width:100%" :disabled="true"/>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="会议时间:"  prop="meetingTime">
                <el-date-picker  v-model="ruleForm.meetingTime" type="datetimerange" style="width:100%"
                  start-placeholder="" end-placeholder="" value-format="yyyy-MM-dd hh:mm:ss" :disabled="true"
                  :default-time="['12:00:00', '08:00:00']">
                </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="会议室位置:"  prop="meetingLocation">
                <!-- <el-input  v-model="ruleForm.material"></el-input> -->
                <el-select v-model="ruleForm.meetingLocation" filterable placeholder="请选择会议室" style="width:100%" :disabled="true">
                  <el-option
                    v-for="item in locationList"
                    :key="item.id"
                    :label="item.levelName"
                    :value="item.id">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="参会人:"  prop="personList">
                
                <el-select v-model="ruleForm.personList" multiple placeholder="请选择" style="width:100%" :disabled="true">
                  <el-option v-for="item in personList" :key="item.id" :label="item.userName" :value="item.userName">
                    {{ item.userName }}
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="参会人数量:"  prop="number" >
                <el-input-number v-model="ruleForm.number" controls-position="right" @change="handleChange"
                  :min="1" :max="50" :disabled="true">
                </el-input-number>
              </el-form-item>
            </el-col>
          </el-row>
          <el-form-item label="会议物资:"  prop="professionalName">
            <el-checkbox-group v-model="checkedCities" :disabled="true">
                <el-row v-for="item in suppliesList" :key="item.dictValue" :value="item.dictValue">
                  <el-col>
                    <el-checkbox :label="item.id" :key="item.id" style="width: 66px;">{{ item.dictLabel }}</el-checkbox>
                    <el-input-number style="margin-left: 15px;" v-model="item.suppliesNum" controls-position="right"
                    @change="handleChange" :min="1" :max="50" :disabled="true">
                  </el-input-number>
                  </el-col>
                </el-row>
                  
            </el-checkbox-group>
          </el-form-item>


        </el-form>

  </div>
</template>

<script>
// 这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
// 例如：import 《组件名称》 from '《组件路径》';
import { treeselect } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";

export default {
  // import引入的组件需要注入到对象中才能使用
  name: "conferenceroomDetail",
  components: {
    Treeselect,
  },
  props:{
    ruleForm:Object,
    isShowcon:Boolean,
    suppliesList:Array,
    checkedCities:Array,
    locationList:Array,
    deptOptions:Object
  },
  data () {
  // 这里存放数据
    return {
        
    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {
  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created () {

  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted () {

  },
  beforeCreate () {}, // 生命周期 - 创建之前
  beforeMount () {}, // 生命周期 - 挂载之前
  beforeUpdate () {}, // 生命周期 - 更新之前
  updated () {}, // 生命周期 - 更新之后
  beforeDestroy () {}, // 生命周期 - 销毁之前
  destroyed () {}, // 生命周期 - 销毁完成
  activated () {} // 如果页面有keep-alive缓存功能，这个函数会触发
}
</script>
<style lang='scss' scoped>
// @import url(); 引入公共css类
.kuang {
  width: 328px;
}
</style>
